package com.sansan.qiangji.service.impl.early;

import com.sansan.qiangji.entity.early.EarlyWarning;
import com.sansan.qiangji.entity.early.example.EarlyWarningExample;
import com.sansan.qiangji.form.early.EarlyWarningListForm;
import com.sansan.qiangji.mapper.early.EarlyWarningMapper;
import com.sansan.qiangji.service.inter.early.EarlyWarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhaobc
 * @description
 * @date 2020-11-13
 */
@Service
public class EarlyWarningServiceImpl implements EarlyWarningService {

    @Autowired
    private EarlyWarningMapper earlyWarningMapper;

    @Override
    public List<EarlyWarning> selectListCondition(EarlyWarningListForm listForm) {
        return earlyWarningMapper.selectListCondition(listForm);
    }

    @Override
    public List<Map<String, Object>> getEarlyStockList() {
        return earlyWarningMapper.getEarlyStockList();
    }

    @Override
    public List<Map<String, Object>> getEarlyOverdueList() {
        return earlyWarningMapper.getEarlyOverdueList();
    }

    @Override
    public int deleteByExample(EarlyWarningExample example) {
        return earlyWarningMapper.deleteByExample(example);
    }

    @Override
    public int insert(EarlyWarning record) {
        return earlyWarningMapper.insert(record);
    }
}
